<fieldset class="solid">
	<legend>#((buyrecord == null||buyrecord.id == null)?'创建订票':'修改订票')</legend>
	<input type="hidden" name="buyrecord.id" value="#(buyrecord.id??)" />
	<div>
		<label>机票编号:</label>
		<select name="buyrecord.flightticketsid">
			<option value="">请选择相应机票编号</option>
			#for(x : flighttickets)
				#if(buyrecord.flightticketsid??!=null && x.id == buyrecord.flightticketsid)
				<option value="#(x.id)" selected="selected">#(x.flightticketsno)</option>
				#else
				<option value="#(x.id)">#(x.flightticketsno)</option>
				#end
			#end
		</select>#(flightticketsidMsg)
	</div>
	<div>
		<label>姓名:</label>
		<input type="text" name="buyrecord.username" value="#(buyrecord.username??)" />#(usernameMsg)
	</div>
	<div>
		<label>手机:</label>
		<input type="text" name="buyrecord.tel" value="#(buyrecord.tel??)" />#(telMsg)
	</div>
	<div>
		<label>身份证号码:</label>
		<input type="text" name="buyrecord.identitynum" value="#(buyrecord.identitynum??)" />#(identitynumMsg)
	</div>
	<div>
		<label>机票数量(张):</label>
		<input type="text" name="buyrecord.ticketnum" value="#(buyrecord.ticketnum??)" />#(ticketnumMsg)
	</div>
	<div>
		<label>&nbsp;</label>
		<input value="#((buyrecord == null||buyrecord.id == null)?'创建':'修改')" type="submit">#(errorMsg)
	</div>
</fieldset>